package com.ljw.food_order_server.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单
 * </p>
 *
 * @author ljw
 * @since 2021-07-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("order")
@ApiModel(value="Order对象", description="订单")
public class Order implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "订单id")
    @TableId(value = "orderId", type = IdType.ID_WORKER)
    private String orderId;

    @ApiModelProperty(value = "下单时间")
    private Date time;

    @ApiModelProperty(value = "订单状态0/1=未支付/已支付")
    private Integer status;

    @ApiModelProperty(value = "下单用户id")
    @TableField("userId")
    private Integer userId;


}
